using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;

namespace PropertyExpression.ControllableQuery.Demo
{
    internal static class RazorInit
    {
        public static void Register()
        {
            RazorConfigurationHelper.SetConfiguratio(new[] {typeof (RazorInit).Assembly}, DALTest.ConnectionString,
                "ControllableQueryDemoCQCache");
        }
    }

    public class RazorConfiguration : IRazorConfiguration
    {
        public Tuple<IEnumerable<string>, IEnumerable<Assembly>> Get(MethodBase method, string file, int line,
            Tuple<IEnumerable<string>, IEnumerable<Assembly>> current)
        {
            return Tuple.Create(new[] {"PropertyExpression.ControllableQuery.Demo"}.Concat(current.Item1), current.Item2);
        }
    }
}